
public class zhuchengxu {

    public static void main(String[] args) {
        //创建teacher对象
        int i ;
        teacher t1=new teacher(1,"Mr.li","男");
        teacher t2=new teacher(2,"Mrs.wang","女");
            System.out.println("教师信息:\n");
            System.out.println(t1.toString());
            System.out.println(t2.toString());

        //创建course对象
        course c1=new course(1,"数学","教101","8:00");
        course c2=new course(2,"线代","教305","10:10");
        course kong=new course(0,"无","无","无");

        c1.kk(t1);
        System.out.println("课程信息：\n");
        System.out.println(c1.toString());
        System.out.println(c2.toString());
        //创建student对象
        student s1=new student(1,"小冯","女");
        s1.xk(c1);
        s1.tk(kong);
        if(s1.course.id==0){
            System.out.println("该学生未选课");
        }
        else {
            System.out.println("学生选课信息:\n" + s1.toString());
        }
    }
}